

use "datasets/tl_measure.dta", clear

by year, sort: egen agv_lr_gov=mean(lr_tavits)

drop if year==year[_n-1]
drop lr_tavits countryname

save "figures/average_gov.dta", replace
